class @CustomModel extends Backbone.Model

    fetch: ->
        Loading.Start()
        super

    FillModelFromUrl: ->
        @attributes = _fillObjectFromUrl(@attributes)

    _fillObjectFromUrl = (object, prefix = '') ->
        for key, value of object
            if typeof value is 'object'
                object[key] = _fillObjectFromUrl(object[key], key + ".")
            else
                val = Url.GetParameterByName(prefix + key)
                if val.length
                    object[key] = val
        return object